package mips;

import tree.BINOP;
import tree.BasicExp;
import tree.CONST;
import tree.MEM;
import frame.Access;

public class InFrame extends Access {
	int offset = 0;
	
	InFrame(int os) {
		super();
		offset = os;
	}
	
	public BasicExp exp(BasicExp framePtr) {
		return new MEM(new BINOP(BINOP.PLUS, framePtr,new CONST(offset)));
	}

}
